home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / text / mags / Resident4.lzh / HD-Install next >
Text File  |  1993-11-10  |  3KB  |  90 lines

  1. echo "Resident #4 HD-Installation program
  2.  
  3. echo "*Ec*NHard Disk Install for Resident #4*N"
  4.  
  5. FailAt 21
  6.  
  7. echo "This script assumes you have some commands in your search-path (eg c:)."
  8. echo "These files are 'echo' (already found, congratulations! :), 'copy', 'ask',"
  9. echo "'assign', 'skip', 'lab' and 'cd'.*N"
  10.  
  11. echo "*NWe are now going to install all the files to run Resident #4"
  12. ask "on your hard disk.  Is this what you want to do? (Type 'Y' for yes)"
  13. If NOT WARN
  14.   echo "*N Exiting..."
  15.   Skip Exit
  16. EndIf
  17.  
  18. echo "*N First we need to know where to install the program.  Resident"
  19. echo "needs about 200kB free diskspace.  Please type the name of the disk"
  20. echo "and/or the directory you wish to install to: " NOLINE
  21.  
  22. assign >NIL: RESsrc: ""
  23. assign >NIL: REStmp: ?
  24. assign >NIL: REStmp: exists
  25. If WARN
  26.   Skip usage
  27. EndIf
  28.  
  29. cd REStmp:
  30. echo "*NYou selected the directory: " NOLINE
  31. cd
  32. echo "*NWe can create a drawer for Resident #4, or place the files"
  33. echo "directly in the above directory.  Would you like to place all"
  34. ask "the files directly in the selected directory? (y/N) "
  35. If NOT WARN
  36.   echo "*NCreating a new directory named Resident4"
  37.   Makedir > nil: Resident4
  38.   If WARN
  39.     echo "*NResident4 already exists there. Do you want to delete "
  40.     ask "the old files and continue with this installation? (y/N)"
  41.     If WARN
  42.       echo "   deleting old files..."
  43.       delete >NIL: REStmp:Resident4/#? all
  44.     Else
  45.       ask "    (return to exit)"
  46.       Skip exit
  47.     EndIf
  48.   EndIf
  49.   copy RESsrc:c/Resident4.info ""
  50.   cd REStmp:Resident4
  51. endIf
  52.  
  53. echo "*N*NCopying files..."
  54. makedir c ClipArts TEXT ZeroQ
  55. copy RESsrc:c/adlrun c/ quiet
  56. copy RESsrc:ClipArts ClipArts all quiet
  57. copy RESsrc:TEXT TEXt all quiet
  58. copy RESsrc:ZeroQ ZeroQ all quiet
  59. copy RESsrc:ReaderForm.TXT RESsrc:ReaderForm.TXT.info "" quiet
  60. copy RESsrc:ReadMe RESsrc:ReadMe.info "" quiet
  61. copy RESsrc:Res4.Exe RESsrc:Resident4 RESsrc:Resident4.info "" quiet
  62. copy RESsrc:Zero.Script RESsrc:ZeroQuest RESsrc:ZeroQuest.info "" quiet
  63.  
  64. if EXISTS libs:powerpacker.library
  65. echo "*NVersion of powerpacker.library installed : " NOLINE
  66. version libs:powerpacker.library
  67. echo "Version of powerpacker.library to install: " NOLINE
  68. version RESsrc:libs/powerpacker.library
  69. ask "Should I install new powerpacker.library?"
  70.   if not WARN
  71.     skip noppinstall
  72.   endif
  73. endif
  74. echo "Copying powerpacker.library to LIBS:..."
  75. copy RESsrc:libs/powerpacker.library libs:
  76.  
  77. LAB noppinstall
  78.  
  79. ask "*NInstallation complete. (return to exit)"
  80. SKIP exit
  81.  
  82. LAB usage
  83. echo "*NSorry that drive is not a valid drive, please check the name"
  84. ask " and run the install again...    (return to exit)"
  85.  
  86. LAB exit
  87. assign RESsrc:
  88. assign REStmp:
  89. EndCLI >NIL:
  90.